package com.example.presentshopping.config.bean;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonIgnoreProperties(ignoreUnknown = true)
public class NoticeBean {


    /**
     * data : {"is_notice":"1","notice_explain":"测试公告"}
     */

    @JsonProperty("data")
    private DataDTO data;

    public DataDTO getData() {
        return data;
    }

    public void setData(DataDTO data) {
        this.data = data;
    }

    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class DataDTO {
        /**
         * is_notice : 1
         * notice_explain : 测试公告
         */

        @JsonProperty("is_notice")
        private String isNotice;
        @JsonProperty("notice_explain")
        private String noticeExplain;

        public String getIsNotice() {
            return isNotice;
        }

        public void setIsNotice(String isNotice) {
            this.isNotice = isNotice;
        }

        public String getNoticeExplain() {
            return noticeExplain;
        }

        public void setNoticeExplain(String noticeExplain) {
            this.noticeExplain = noticeExplain;
        }
    }
}
